package com.ddwangx.learnspringboot.pojo;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

@Alias(value="product")
public class Product implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String productName;
	private int stock;
	private double price;
	private int version;
	private String note;
	/**** setter and getter ****/
	
	public String getProductName() {
		return productName;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
}
